#include<iostream>

#include"Special.h"

using namespace std;
int main()
{
	//SpecialClass::CopyBan a(1);
	//SpecialClass::CopyBan b = a;
	//SpecialClass::CopyBan c(a);

	//SpecialClass::OnlyHeap* ptr = SpecialClass::OnlyHeap::CreatObj();

	//SpecialClass::OnlyHeap a(1);
	//SpecialClass::OnlyHeap b(*ptr);

	//SpecialClass::OnlyHeap p1;
	//SpecialClass::OnlyHeap* p2 = new SpecialClass::OnlyHeap;
	//SpecialClass::OnlyHeap p3(*p2);p2->Release();
	//SpecialClass::OnlyStack a = SpecialClass::OnlyStack::CreatObj();
	//SpecialClass::OnlyStack b(1);
	//SpecialClass::OnlyStack* c = new SpecialClass::OnlyStack(a);

	//SpecialClass::OnlyStack* b = (SpecialClass::OnlyStack*)malloc(sizeof(SpecialClass::OnlyStack));

	//b->CreatObj();

	//SpecialClass::Child();


	SpecialClass::Singleton* ptr = SpecialClass::Singleton::GetInstance();
	cout << ptr << endl;
	cout << SpecialClass::Singleton::GetInstance() << endl;
	cout << SpecialClass::Singleton::GetInstance() << endl;
	cout << SpecialClass::Singleton::GetInstance() << endl;

	int* a = new int;
	a = nullptr;
	delete a;
	return 0;
}
